//
//  NSString+Common.h
//  ArtDog
//
//  Created by dllo on 16/8/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (Common)

- (NSString *)stringWith32BitMD5Upper;
- (NSString *)stringWith32BitMD5Lower;

- (NSString *)stringWith16BitMD5Upper;
- (NSString *)stringWith16BitMD5Lower;

- (NSString *)stringWithBase64;

+ (NSString *)getURLStringWith:(NSString *)host andPaths:(id)paths andParams:(id)params;

// 得到UserDefault
+ (NSString *)getUserDefaultId;
+ (NSString *)getUserDefaultToken;
+ (NSDictionary *)getUserDefaultsDic;

// 计算文字高度
- (CGFloat)calculateWordsHeightWithFontSize:(CGFloat)size andWidth:(CGFloat)width;

// 时间处理
- (NSString *)dealDate;
@end
